﻿/*----------------------------------------------------------------
// Copyright (C) 2011 上海
// 版权所有。 
//
// 文件名：PasswordModifyVM
// 文件功能描述：修改密码models层
//
// 
// 创建标识：2012-06-21 王冲
//
// 修改标识：
// 修改描述：
//
//
//----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace WaiGaoQiaoWeb.Models
{
    public class PasswordModifyVM
    {
        [Required(ErrorMessage = "新密码不能为空")]
        //[Remote("CheckPasswords", "PasswordModify", AdditionalFields = "passwords,passwordsEnter", HttpMethod = "POST", ErrorMessage = "新密码与确认新密码不相符")]
        public string passwords
        {
            get;
            set;
        }
        [Required(ErrorMessage = "确认新密码不能为空")]
        [Remote("CheckPasswords", "PasswordModify", AdditionalFields = "passwords,passwordsEnter", HttpMethod = "POST", ErrorMessage = "新密码与确认新密码不相符")]
        public string passwordsEnter
        {
            get;
            set;
        }
        [Required(ErrorMessage = "旧密码不能为空")]
        [Remote("CheckPasswordsOld", "PasswordModify", AdditionalFields = "PassWordsOld", HttpMethod = "POST", ErrorMessage = "旧密码不正确")]
        public string PassWordsOld
        {
            get;
            set;
        }
    }
}